import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './assets/main.css'
import store from './store'
import Vue3DraggableResizable from 'vue3-draggable-resizable'
import 'vue3-draggable-resizable/dist/Vue3DraggableResizable.css'
import '@/assets/iconfont/iconfont.js'
import App from './App.vue'
import router from './router'
import DesignPreview from '@/components/DesignPreview/index.vue'
import baseDesigner from '@/components/BaseDesigner/index.vue'
import ImagePreview from '@/components/ImagePreview'
import * as components from '@element-plus/icons-vue'
const app = createApp(App)
app.component('DesignPreview', DesignPreview)
app.component('BaseDesigner', baseDesigner)
app.component('ImagePreview', ImagePreview)
for (const key in components) {
  const componentConfig = components[key]
  app.component(componentConfig.name, componentConfig)
}
app.use(store)
app.use(router)
app.use(Vue3DraggableResizable)
app.use(ElementPlus)
app.mount('#app')
